package com.zsc.newbuds.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 兑换商品实体类
 * @author D
 */
public class Shop implements Serializable ,Comparable<Shop>{

    private Integer goodsId;
    private String goodsName;
    private int goodsPrice;
    private String goodsImage;
    private String goodsOperator;
    private int goodsCount;
    private String createTime;
    private int version;


    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getGoodsCount() { return goodsCount; }

    public void setGoodsCount(int goodsCount) { this.goodsCount = goodsCount; }

    public int getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(int goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public String getGoodsOperator() {
        return goodsOperator;
    }

    public void setGoodsOperator(String goodsOperator) {
        this.goodsOperator = goodsOperator;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }


    @Override
    public String toString() {
        return "Shop{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsImage='" + goodsImage + '\'' +
                ", goodsOperator='" + goodsOperator + '\'' +
                ", goodsCount=" + goodsCount +
                ", createTime='" + createTime + '\'' +
                ", version=" + version +
                '}';
    }

    @Override
    public int compareTo(Shop o) {
        return this.goodsId - o.goodsId;
    }
}
